s = "AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT"
def findRepeatedDnaSequences(s: str):
    if s=="":
        return []
    subStrSet=set()
    sLen=len(s)
    l_pointer,r_pointer=0,10
    ans=[]
    while r_pointer<=sLen:
        if s[l_pointer:r_pointer] not in subStrSet:
            subStrSet.add(s[l_pointer:r_pointer])
        else:
            #在里面已经有了，就加入到结果列表中
            ans.append(s[l_pointer:r_pointer])
        l_pointer+=1
        r_pointer+=1
    print(ans)
findRepeatedDnaSequences(s)